//
//  downModel.m
//  Estate
//
//  Created by heyong on 16/8/22.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import "downModel.h"

@implementation downModel

- (instancetype)initWithDict:(NSDictionary *)dict{
    if (self=[super init]) {
        _title=dict[@"filename"];
        _pdfId=dict[@"id"];
        NSString *pdfPath=dict[@"filepath"];
        NSArray *arr=[pdfPath componentsSeparatedByString:@"."];
        _type=[arr lastObject];
    }
    return self;
}

+(instancetype)downWithDict:(NSDictionary *)dict{
    return [[self alloc]initWithDict:dict];
}
@end
